@import 'variables';
@import 'mixin';
@import 'transition';
@import 'element-ui';
@import 'sidebar';
@import 'btn';

html {
    background: #EAEEF3;
}

body {
    height: 100%;
    background: #EAEEF3;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

aside {
    background: #eef1f6;
    padding: 8px 24px;
    margin-bottom: 20px;
    border-radius: 2px;
    display: block;
    line-height: 32px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #2c3e50;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    a {
        color: #337ab7;
        cursor: pointer;

        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    //margin-top: 30px;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

    .subtitle {
        font-size: 20px;
        color: #fff;
    }

    &.draft {
        background: #d0d0d0;
    }

    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;

    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;

    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}
// 滚动条样式
.hasTagsView .app-main, .my-scrollbar, .page-height-box, .scroll-box, .info-content, .scroll-content {
    &::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 4px;
    }

    &:hover::-webkit-scrollbar-thumb {
        background: hsla(0, 0%, 53%, 0.4);
    }

    &:hover::-webkit-scrollbar-track {
        background: hsla(0, 0%, 53%, 0.1);
    }
}

// 表格样式重置
.el-tabs__header {
    margin-bottom: 0;
}
.el-tabs__item {
    height: 34px;
    line-height: 34px;
}
.el-table {
    border-right: 1px solid #E1E6EC;
    border-left: 1px solid #E1E6EC;
    border-bottom: 1px solid #E1E6EC;
}
.el-table__header {
    th {
        background: #F5F6FA;
        font-size: 14px;
        font-weight: 500;
        color: #1C2024;
    }
}

.el-table__body {
    td {
        font-size: 14px;
    }
}
.el-table__fixed::before, .el-table__fixed-right::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: unset;
    z-index: 4;
}


// 卡片组样式
.echart-table-box {
    .el-col {
        height: 360px;
        margin-bottom: 10px;
        border-radius: 2px;
        .content {
            background: #fff;
            height: 100%;
            padding: 10px;
            p {
                margin: 0;
            }
            .title {
                font-size: 16px;
                font-weight: 500;
                color: #212225;
                line-height: 22px;
                margin-left: 12px;
            }
            ul {
                margin: 0 0 0 12px;
                padding: 5px 0 0 0;
                list-style: none;
                max-height: 318px;
                overflow-y: auto;
                li {
                    margin: 0;
                    padding: 0;
                    /deep/ .el-progress-bar {
                        width: 80%;
                    }
                    /deep/ .el-progress__text {
                        font-size: 12px !important;
                        color: #606266;
                    }
                    .li-item-text {
                        font-size: 12px;
                        line-height: 14px;
                        margin: 4px 0 10px;
                    }
                }
            }
            .no-data {
                text-align: center;
            }
            .title-tool-btn {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-right: 10px;
                margin-bottom: 7px;
            }
        }
    }
}
// 表格状态
.status-red {
    color: #e21f06;
}
.status-green {
    color: #12bf42;
}
.status-yellow {
    color: #f29716;
}
.status-blue {
    color: #1682e6;
}

// 总览，数据分析高度固定搜索框，152=40+32+30+42
.page-height-box {
    height: calc(100vh - 152px);
    overflow-y: auto;
    overflow-x: hidden;
}

.exceed-text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.el-input {
    input, select {
        font-size: 13px;
        color: #1C2024;
    }
}
.is-center {
    .el-button {
        span {
            font-size: 14px;
        }
    }
}
.el-tooltip__popper {
    max-width: 600px;
}
.el-form-item {
    margin-right: 6px;
}
.el-form-item__label {
    padding-right: 4px;
}
.el-table td, .el-table th {
    padding: 4px 0;
}
.el-table .cell, .el-table th div, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell, .el-table th>.cell {
    padding: 0 2px;
}
.el-table .caret-wrapper {
    width: 12px;
    height: 19px;
}
.el-table .sort-caret {
    left: 1px;
    &.ascending {
        top: -3px;
    }
    &.descending {
        bottom: 0;
    }
}
.el-table .cell.el-tooltip {
    min-width: 30px;
}
.el-table th div {
    font-size: 13px;
    font-weight: bold;
}
